/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.yurendao.OSFileSystem.file;

import java.util.Date;

/**
 *
 * @author Administrator
 */
public class FileAttributes {
    //文件属性包括：文件名称、文件类型（包括：普通文件、文件夹）、文件的位置（相对路径）
    //文件大小、占用空间、文件的创建时间、文件是否可读、文件是否可见
    private String fileName;
    private String fileType;
    private String fileLocation;
    private String fileSize;
    private String fileSpace;
    private Date fileCreatedTime;
    private Boolean readOnly;
    private Boolean isHide;
    private Boolean isOpen;

    public FileAttributes(String fileName, String fileLocation, Date fileCreatedTime) {
        this.fileName = fileName;
        this.fileType = "文件";
        this.fileLocation = fileLocation;
        this.fileSize = "1024B";
        this.fileSpace = "10KB";
        this.fileCreatedTime = fileCreatedTime;
        this.readOnly = true;
        this.isHide = false;
        this.isOpen = false;
    }

    /**
     * @return the fileName
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * @param fileName the fileName to set
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     * @return the fileType
     */
    public String getFileType() {
        return fileType;
    }

    /**
     * @param fileType the fileType to set
     */
    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    /**
     * @return the fileLocation
     */
    public String getFileLocation() {
        return fileLocation;
    }

    /**
     * @param fileLocation the fileLocation to set
     */
    public void setFileLocation(String fileLocation) {
        this.fileLocation = fileLocation;
    }

    /**
     * @return the fileSize
     */
    public String getFileSize() {
        return fileSize;
    }

    /**
     * @param fileSize the fileSize to set
     */
    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    /**
     * @return the fileSpace
     */
    public String getFileSpace() {
        return fileSpace;
    }

    /**
     * @param fileSpace the fileSpace to set
     */
    public void setFileSpace(String fileSpace) {
        this.fileSpace = fileSpace;
    }

    /**
     * @return the fileCreatedTime
     */
    public Date getFileCreatedTime() {
        return fileCreatedTime;
    }

    /**
     * @param fileCreatedTime the fileCreatedTime to set
     */
    public void setFileCreatedTime(Date fileCreatedTime) {
        this.fileCreatedTime = fileCreatedTime;
    }

    /**
     * @return the readOnly
     */
    public Boolean getReadOnly() {
        return readOnly;
    }

    /**
     * @param readOnly the readOnly to set
     */
    public void setReadOnly(Boolean readOnly) {
        this.readOnly = readOnly;
    }

    /**
     * @return the isHide
     */
    public Boolean getIsHide() {
        return isHide;
    }

    /**
     * @param isHide the isHide to set
     */
    public void setIsHide(Boolean isHide) {
        this.isHide = isHide;
    }

    /**
     * @return the isOpen
     */
    public Boolean getIsOpen() {
        return isOpen;
    }

    /**
     * @param isOpen the isOpen to set
     */
    public void setIsOpen(Boolean isOpen) {
        this.isOpen = isOpen;
    }

}
